package com.ruoyi.device.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * device对象 device
 * 
 * @author ruoyi
 * @date 2024-06-17
 */
public class Device extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 设备名 */
    @Excel(name = "设备名")
    private String deviceName;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String deviceTypes;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 房间id */
    @Excel(name = "房间id")
    private Long roomId;

    /** 程度 */
    @Excel(name = "程度")
    private String deviceExtent;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginTime;

    /** 持续时间 */
    @Excel(name = "持续时间")
    private Long beginLong;

    /** 设定状态 */
    @Excel(name = "设定状态")
    private String beginStatus;

    /** 设备照片 */
    @Excel(name = "设备照片")
    private String devicePic;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setDeviceTypes(String deviceTypes) 
    {
        this.deviceTypes = deviceTypes;
    }

    public String getDeviceTypes() 
    {
        return deviceTypes;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setRoomId(Long roomId) 
    {
        this.roomId = roomId;
    }

    public Long getRoomId() 
    {
        return roomId;
    }
    public void setDeviceExtent(String deviceExtent) 
    {
        this.deviceExtent = deviceExtent;
    }

    public String getDeviceExtent() 
    {
        return deviceExtent;
    }
    public void setBeginTime(Date beginTime) 
    {
        this.beginTime = beginTime;
    }

    public Date getBeginTime() 
    {
        return beginTime;
    }
    public void setBeginLong(Long beginLong) 
    {
        this.beginLong = beginLong;
    }

    public Long getBeginLong() 
    {
        return beginLong;
    }
    public void setBeginStatus(String beginStatus) 
    {
        this.beginStatus = beginStatus;
    }

    public String getBeginStatus() 
    {
        return beginStatus;
    }
    public void setDevicePic(String devicePic) 
    {
        this.devicePic = devicePic;
    }

    public String getDevicePic() 
    {
        return devicePic;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceName", getDeviceName())
            .append("deviceTypes", getDeviceTypes())
            .append("status", getStatus())
            .append("roomId", getRoomId())
            .append("deviceExtent", getDeviceExtent())
            .append("beginTime", getBeginTime())
            .append("beginLong", getBeginLong())
            .append("beginStatus", getBeginStatus())
            .append("devicePic", getDevicePic())
            .toString();
    }
}
